export interface Contact {
  id: number;
  name: string;
  email: string;
}

export interface State {
  selectedId: number;
  messages: {
    [key: number]: string;
  };
}

export interface PayLoad {
  contactId?: number;
  message?: string;
}

export interface Action {
  type: string;
  payload?: PayLoad;
}
